package bean;

import java.util.Date;

// 如何定义数据库和java的Javabean

/**
 * 用户信息类
 */
public class UserInfo {
    // 一般属性名称和数据表的字段一致即可。
    private int id;
    private String nickname;
    private String account;
    private String password;
    // 去掉下划线然后后面单词的首字母大写即可。
    private String headerImage;
    private String headerUrl;
    private String email;
    private Date createTime;
    private Date updateTIme;
    private int status;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getHeaderImage() {
        return headerImage;
    }

    public void setHeaderImage(String headerImage) {
        this.headerImage = headerImage;
    }

    public String getHeaderUrl() {
        return headerUrl;
    }

    public void setHeaderUrl(String headerUrl) {
        this.headerUrl = headerUrl;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTIme() {
        return updateTIme;
    }

    public void setUpdateTIme(Date updateTIme) {
        this.updateTIme = updateTIme;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "id=" + id +
                ", nickname='" + nickname + '\'' +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", headerImage='" + headerImage + '\'' +
                ", headerUrl='" + headerUrl + '\'' +
                ", email='" + email + '\'' +
                ", createTime=" + createTime +
                ", updateTIme=" + updateTIme +
                ", status=" + status +
                '}';
    }
}
